/**
 * 
 */
package com.kingyun.gpsinspection.purificationservice.common.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * 读取BPM配置文件
 * Created by sugongche on 2017/1/20.
 *
 */
public class Config extends Properties {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static Config config = null;
	private Config(){
		InputStream is = getClass().getResourceAsStream("/bpm.properties");
		try {
			this.load(is);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static synchronized Config getInstance(){
		if(config ==null){
			config = new Config();
		}
		return config;
	}

}
